package miniBanco.Gui;

import java.awt.BorderLayout;
import java.awt.Color;

import javax.swing.BoxLayout;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JPanel;


public class LogGridPanel extends JPanel {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private BorderLayout layout;
	private JButton Refrescar;
	private JButton BorrarLog;
	private LogGrid grid;

	public LogGridPanel()
	{

		init();
	}
	private void init()
	{
		grid = new LogGrid();
		//Seteo el layout
    	layout = new BorderLayout();
 		setLayout(layout);
		//Armo el LogGrid
		JLabel label = new JLabel("Log del sistema");
		label.setSize(200, 50);
		label.setBackground(Color.BLACK);
		Refrescar = new JButton("Refrescar");
		BorrarLog = new JButton("Borrar log");
		add(label,BorderLayout.NORTH);
		add(grid,BorderLayout.CENTER);
		JPanel jPanel = new JPanel();
		jPanel.setLayout( new BoxLayout(jPanel,BoxLayout.Y_AXIS ));
		add(jPanel,BorderLayout.SOUTH);
		jPanel.add(BorrarLog);
		jPanel.add(Refrescar);
	}

	public LogGrid getGird()
	{
		return grid;
	}
	public JButton getBtnRefrescar()
	{
		return Refrescar;
	}
	public JButton getBtnBorrarLog()
	{
		return BorrarLog;
	}
}


